﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Pay.Repository.Entities
{
    /// <summary>
    /// 摩宝支付记录
    /// </summary>
    [Table("pay_mobaoPayment"), Comment("支付单")]
    public class MobaoPayment : EfEntity
    {
        /// <summary>
        /// 商户号
        /// </summary>
        [Comment("商户号"), MaxLength(50)]
        public string CustNo { get; set; }
        /// <summary>
        /// 商户参数
        /// </summary>
        [Comment("商户参数"),MaxLength(1024)]
        public string? MerchParam { get; set; }

        /// <summary>
        /// 商户订单号
        /// </summary>
        [Comment("商户订单号"), MaxLength(50)]
        public string MerchTradeNo { get; set; }

        /// <summary>
        /// 商户通知地址
        /// </summary>
        [Comment("商户通知地址"), MaxLength(50)]
        public string MerchUrl { get; set; }

        /// <summary>
        /// 通知时间
        /// </summary>
        [Comment("通知时间"), MaxLength(50)]
        public string NotifyTime { get; set;}

        /// <summary>
        /// 摩宝系统订单号
        /// </summary>
        [Comment("摩宝系统订单号"), MaxLength(50)]
        public string OrderNo { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        [Comment("订单状态"), MaxLength(50)]
        public string OrderStatus { get; set; }

        /// <summary>
        /// 实付金额
        /// </summary>
        [Comment("实付金额"), Column(TypeName = "decimal(18,2)")]
        public decimal TradeAmt { get; set; }

        /// <summary>
        /// 交易时间
        /// </summary>
        [Comment("交易时间"),MaxLength(50)]
        public string TradeTime { get;set; }

        /// <summary>
        /// 签名信息
        /// </summary>
        [Comment("签名信息"),MaxLength(1024)]
        public string SignMsg { get; set; }
    }
}
